Crate sp_genesis_builder
source ·Expand description
Substrate genesis config builder
This Runtime API allows to construct RuntimeGenesisConfig
, in particular:
- serialize the runtime default
RuntimeGenesisConfig
struct into json format, - put the RuntimeGenesisConfig struct into the storage. Internally this operation calls
GenesisBuild::build
function for all runtime pallets, which is typically provided by pallet’s author. - deserialize the
RuntimeGenesisConfig
from given json blob and putRuntimeGenesisConfig
into the state storage. Allows to build customized configuration.
Providing externalities with empty storage and putting RuntimeGenesisConfig
into storage
allows to catch and build the raw storage of RuntimeGenesisConfig
which is the foundation for
genesis block.
Traits§
- API to interact with RuntimeGenesisConfig for the runtime
Type Aliases§
- The result type alias, used in build methods.
Err
contains formatted error message.